| Parameter | Type | Default | Description |
| --- | --- | --- | --- |
| `file` | `Union[Path, IO[Any]]` | Required | Path to text file or file-like object containing text content |
